package com.clqteam.serviceimpl;

import com.clqteam.dao.SelectProductBySupplierDao;
import com.clqteam.daoimpl.SelectProductBySupplierDaoImpl;
import com.clqteam.service.SelectProductBySupllierService;

import net.sf.json.JSONObject;
/**
 * 通过供应商查询product的service
 * @author Administrator LXG
 *
 */
public class SelectProductBySupllierServiceImpl implements SelectProductBySupllierService{
	SelectProductBySupplierDao spbs=new SelectProductBySupplierDaoImpl();
	@Override
	public JSONObject selectProductBySupID(int supId, int page, int rows) {
		JSONObject jo=new JSONObject();
		jo.put("total", spbs.countProductBySupId(supId));
		jo.put("rows", spbs.selectProductBySupId(supId, page, rows));
		
		return jo;
	}

}
